<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>页面设置 &gt; 商城自定义功能 &gt; 商城自定义页面 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
    	</div>
    	<div class="actions">
    		<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
    	</div>
	</div>
	<div class="portlet-body form">
	   	<form action="/defineTemplate/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
					
					<div class="col-md-3">
						<label class="control-label col-md-4">页面标题：</label> 
						<label class="col-md-8">
							<input type="text" class="form-control" name="title" value="$!title" placeholder="请输入标题">
						</label>
					</div>
					<div class="col-md-3">
						<label class="control-label col-md-4">所属模板：</label>
						<div class="col-md-8">
							 <select name="templateId" class="form-control bs-select "  data-size="8" >
		                    	<option value="">请选择</option>
		                    	#foreach($template in $!templates)
			                    	<option value="$!template.id" #if($templateId==$!template.id) selected #end >$!template.name</option>
		                        #end
		                    </select>
						</div>
					</div>
	    		</div>
			</div>
		</form>
	</div>
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a href="/definePage/add" class="btn white btn-sm ajaxify"><i class="fa fa-plus"></i> 新增 </a>
		</div>
    </div>
    
	
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
							<th>页面名称</th>
		   		 			<th>页面标题</th>
		   		 			<th>所属模板</th>
		   		 			<th>内容类型</th>
		   		 			<th>页面简介</th>
		   		 			<th>引用次数</th>
		   		 			<th>浏览次数</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
					#foreach($item in $pageDefinePage.result)
						#set($sysPage=$dpMap.get($item))
		  				<tr>  
						    <td>$!item.name</td>
						    <td>$!item.title</td>
						    <td>$!item.templateName</td>
						    <td>#if($!item.types == 1) PC端 #else 移动端  #end </td>
						    <td>$!item.synopsis</td>
						    <td>$!item.quotes</td>
						    <td>$!item.views</td>
			    			<td>
						    	<a class="btn green btn-outline btn-sm ajaxify" href="/definePage/edit?id=$!item.id"> 
									<i class="fa fa-edit"></i>修改
								</a>
								<a href="#modelContent" thref="/definePage/showLink?id=$!item.id" class="btn green btn-outline btn-sm ajax-model-get" code="category.add1" data-toggle="modal"> 
									<i class="fa fa-link"></i>链接
								</a>
								#if(!$sysPage)
								<a class="btn green btn-outline btn-sm ajax-delete" href="javascript:;" thref="/definePage/delete?id=$!item.id">
									<i class="fa fa-trash"></i>删除
								</a>
								#end
						    </td>		  			
		  				</tr>
					#end
					</tbody>
				</table>
			</div>
			#set($page=$pageDefinePage)
			#set($pageUrl="/definePage/list?&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>


